#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-11-10 12:44

class CalcFunction:

    def cal_add(self, a, b):
        try:
            return a + b
        except TypeError:
            return "请输入数字"

    def cal_div(self, a, b):
        try:
            return a / b
        except ZeroDivisionError:
            return "除数不能为0"
        except TypeError:
            return "请正确输入数字"
